import { WeaTools } from 'ecCom';

export const getMailAccount = params => WeaTools.callApi('/api/email/setting/getMailAccount', 'GET', params);

export const getMailLabelBean = params => WeaTools.callApi('/api/email/setting/getMailLabelBean', 'GET', params);

export const updateUserDefaultMailAccount = params => WeaTools.callApi('/api/email/setting/updateUserDefaultMailAccount', 'POST', params);

export const makeUserMailAccount = params => WeaTools.callApi('/api/email/setting/makeUserMailAccount', 'POST', params);

export const getMailAccountBean = params => WeaTools.callApi('/api/email/setting/getMailAccountBean', 'GET', params);

export const deleteUserMailAccount = params => WeaTools.callApi('/api/email/setting/deleteUserMailAccount', 'POST', params);

export const getMailAccountDefaultInfo = params => WeaTools.callApi('/api/email/setting/getMailAccountDefaultInfo', 'GET', params);

export const getEmailAccountCondition = params => WeaTools.callApi('/api/email/condition/getEmailAccountCondition', 'GET', params);

export const getEmailEditAccountCondition = params => WeaTools.callApi('/api/email/condition/getEmailEditAccountCondition', 'GET', params);

export const openIdentifyInvoiceMailAccount = params => WeaTools.callApi('/api/email/setting/openIdentifyInvoiceMailAccount', 'POST', params);

export const getEmailAddAccountCondition = params => WeaTools.callApi('/api/email/set/getEmailAddAccountCondition', 'GET', params);

export const getEmailsentFolderName = params => WeaTools.callApi('/api/email/folder/getEmailsentFolderName', 'GET', params);
